package org.smart4j.framework.dwtest;

import org.smart4j.framework.core.impl.DefaultClassScanner;
import org.smart4j.framework.core.impl.support.ClassTemplate;

import java.util.List;

/**
 * Created by
 *
 * @author dw
 * @date 2018/01/23
 */
public class TestClassScanner {
    public static void main(String[] args) {
        new ClassTemplate("org.smart4j.framework.dwtest") {
            @Override
            public boolean checkAddClass(Class<?> cls) {
                String className = cls.getName();
                String pkgName = className.substring(0, className.lastIndexOf("."));
                return pkgName.startsWith(packageName);
            }
        }.getClassList();
    }
}
